import type { GetMessage, Message } from '@/type/message'
import {http} from '@/utils/http'

/**
 * 
 * @param data 获取Bot信息
 * @returns 
 */
export const getMessage = (data: GetMessage) => {
    return http<Message[]>({
        method: 'POST',
        url: 'https://api.coze.cn/open_api/v2/chat',
        header: {
            'Authorization': 'Bearer pat_Ff4LXufuuiUbuLVOUZTD1AkaB6v6W00DfzWJq3xNhUMPtdhSbvDA2hl0bG8dzwkM',
            'Content-Type': 'application/json'
        },
        data,
    })
}